﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Sys.Repository.Entities
{
    /// <summary>
    /// 短信发送日志
    /// </summary>
    [Table("sys_SmsLog"), Comment("短信发送日志")]
    public class SmsLog : EfEntity
    {
        /// <summary>
        /// 电话号码
        /// </summary>
        [Comment("电话号码"),MaxLength(20)]
        public string Tel { get; set; }

        /// <summary>
        /// 状态码
        /// </summary>
        [Comment("状态码"), MaxLength(50)]
        public string? Code { get; set; }

        /// <summary>
        /// 状态码说明
        /// </summary>
        [Comment("状态码说明")]
        public string? Message { get; set; }

        /// <summary>
        /// 请求ID
        /// </summary>
        [Comment("请求ID"), MaxLength(100)]
        public string? Requestld { get; set; }

        /// <summary>
        /// 发送回执ID,可根据该ID查询具体的发送状态
        /// </summary>
        [Comment("发送回执ID,可根据该ID查询具体的发送状态"), MaxLength(100)]
        public string? Bizld { get; set; }

        /// <summary>
        /// 发送的内容
        /// </summary>
        [Comment("发送的内容")]
        public string? SenData { get; set; }

        /// <summary>
        /// 短信模板ID
        /// </summary>
        [Comment("短信模板ID"), MaxLength(50)]
        public string? SenTemp { get;set; }

        /// <summary>
        /// 发送时间
        /// </summary>
        [Comment("发送时间")]
        public DateTime SendTime { get; set; }
    }
}
